'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      'Chapters',[
        {
          courseId: 1,
          title: 'Reatc 课程介绍',
          content: 'React 课程介绍content',
          videoUrl:'3',
          rank:1,
          createdAt: new Date(),
          updatedAt: new Date()
        },
        {
          courseId: 2,
          title: 'Vue 课程介绍',
          content: 'Vue 课程介绍content',
          videoUrl:'2',
          rank:2,
          createdAt: new Date(),
          updatedAt: new Date()
        },
        {
          courseId: 3,
          title: 'Node 课程介绍',
          content: 'Node 课程介绍content',
          videoUrl:'1',
          rank:1,
          createdAt: new Date(),
          updatedAt: new Date()
        },
      ]
    )
  },

  async down (queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  }
};
